//
//  ViewController.m
//  LSCodeLibrary
//
//  Created by Samuel on 15/3/31.
//  Copyright (c) 2015年 Samuel. All rights reserved.
//

#import "ViewController.h"
#import "SHTTPClient.h"
#import "UIViewController+Base.h"
#import "ZbarTestViewController.h"


@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
//    [self httpTest];
    
    UIButton *rightbtn = [self setDefaultRightButton];
    [rightbtn addTarget:self action:@selector(riAction:) forControlEvents:1];
//
    
    
    [self testing];
}
- (void)testing
{
    NSDictionary *dic = @{@"one":@"1",@"two":@"2"};
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (void)httpTest
{
    NSMutableDictionary *ccc = [[NSMutableDictionary alloc]init];
    //    SHTTPClient *aaa = [[SHTTPClient alloc]init];
    [ccc setObject:@"1" forKey:@"zoneId"] ;
    [ccc setObject:@"20c691ebfb9bd4428ce29835e4e50657" forKey:@"terNo"];
    [ccc setObject:@"f87437f8a48e9b28ebaa57c32bfda995:fzxc0WG0lV" forKey:@"weblogId"];
//    [SHTTPClient PostBaseForConnection:@"getZoneList.do"
//                           _Parameters:ccc
//                                 block:^(id rDictionary) {
//                                     NSLog(@"%@",rDictionary);
//                                 } failblock:^(NSError *error) {
//                                     ;
//                                 }];
}
- (void)riAction:(id)sender
{
    ZbarTestViewController *zBarReaderViewController = [[ZbarTestViewController alloc]init];
//    UINavigationController *navigationController = [[UINavigationController alloc]initWithRootViewController:zBarReaderViewController];
    [self presentViewController:zBarReaderViewController animated:YES completion:^{
        ;
    }];
}
@end
